#ifndef RESTORETASK_H
#define RESTORETASK_H

#include "backuptask.h"
#include <QString>
#include <QDateTime>
#include "backuptask.h"

class RestoreTask : public BackupTask {

public:
    enum Location {
        Original,
        Different
    };

    RestoreTask(BackupTask parent, QDateTime timestamp, RestoreTask::Location location);
    TaskType getTaskType();

    //Setters
    void setLocation(RestoreTask::Location location);
    void setTargetPath(QString path);

    //Getters
    inline QDateTime getTimestamp() const {return timestamp;}
    inline RestoreTask::Location getLocation() const {return location;}
    inline QString getRestoreTargetPath() const {return restoreTargetPath;}

private:
    QDateTime timestamp;
    RestoreTask::Location location;
    QString restoreTargetPath;

};

Q_DECLARE_METATYPE(QSharedPointer<RestoreTask>)

#endif // RESTORETASK_H
